<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style>
    #myDiv:target{
      background: red;
    }
  </style>
</head>
<body>
<a href="#myDiv">Click me!</a>
<div id="myDiv">This is a div</div>
</body>
</html>
